package com.tangyuan.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: user_video_collection
 * @Author: jeecg-boot
 * @Date:   2024-03-12
 * @Version: V1.0
 */
@Data
@TableName("user_video_collection")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class UserVideoCollection implements Serializable {
    private static final long serialVersionUID = 1L;

	/**收藏记录ID*/
	@TableId(type = IdType.AUTO)
    private Long id;
	/**用户ID*/
    private Long userId;
	/**视频ID*/
    private Long videoId;
	/**收藏日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date collectionDate;
	/**delete*/
    private Integer isDelete;
}
